onTouch

open fun onTouch(@NonNull v: View, @NonNull event: MotionEvent): Boolean(source)

Handle a touch event.

Return

True if the listener has consumed the event, false otherwise.

Parameters

v

The view the touch event has been dispatched to.

event

The MotionEvent object containing full information about the event.